const path=require("path")
module.exports={
    resolve: {
        alias: {
          'pdfjs-dist/build/pdf.worker': 'pdfjs-dist/build/pdf.worker.entry'
        }
      },
      module: {
        rules: [
          {
            test: /pdf\.worker\.js$/,
            use: 'worker-loader'
          }
        ]
      }
}